package com.lab.action;   

import java.io.PrintWriter;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

/**
 * @author wuhao
 * @version 创建时间：Mar 31, 2013 5:55:11 PM
 * 类说明
 */
public class BaseAction extends ActionSupport{
	/**  session */
	protected Map<String,Object> session = ActionContext.getContext().getSession();
	/** resposne */
    protected HttpServletResponse response = (HttpServletResponse)ActionContext.getContext().get(org.apache.struts2.StrutsStatics.HTTP_RESPONSE);
    /** request */
    protected HttpServletRequest request = (HttpServletRequest)ActionContext.getContext().get(org.apache.struts2.StrutsStatics.HTTP_REQUEST);
    
    protected PrintWriter out = null;
    /**
     * 关闭out
     * @param out
     */
    protected void goOut(PrintWriter out){
    	out.flush();
    	out.close();
    }
    
//    @Resource(name="userSERVICE")
//    protected UserSERVICE userSERVICE;
//	public void setUserSERVICE(UserSERVICE userSERVICE) {
//		this.userSERVICE = userSERVICE;
//	}
    
	
    

}
  